<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt; Struct Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html">ReferenceVectorGuidedSelection</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="structshark_1_1_reference_vector_guided_selection-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt; Struct Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Implements the reference vector selection for the <a class="el" href="classshark_1_1_r_v_e_a.html" title="Implements the RVEA algorithm.">RVEA</a> algorithm.  
 <a href="structshark_1_1_reference_vector_guided_selection.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_reference_vector_guided_selection_8h_source.html">shark/Algorithms/DirectSearch/Operators/Selection/ReferenceVectorGuidedSelection.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa924daa48c07ebab02ad0f09f1775f49" id="r_aa924daa48c07ebab02ad0f09f1775f49"><td class="memItemLeft" align="right" valign="top">typedef std::set&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aa924daa48c07ebab02ad0f09f1775f49">bag_t</a></td></tr>
<tr class="separator:aa924daa48c07ebab02ad0f09f1775f49"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7bf23c25be28a0dc6a93b1ccb419233f" id="r_a7bf23c25be28a0dc6a93b1ccb419233f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">operator()</a> (std::vector&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; &amp;population, RealMatrix const &amp;referenceVectors, RealVector const &amp;gammas, std::size_t const curIteration)</td></tr>
<tr class="memdesc:a7bf23c25be28a0dc6a93b1ccb419233f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Select individuals by marking them as "selected".  <br /></td></tr>
<tr class="separator:a7bf23c25be28a0dc6a93b1ccb419233f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8091809b0e95b77de9c89fd08ecf232" id="r_ab8091809b0e95b77de9c89fd08ecf232"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:ab8091809b0e95b77de9c89fd08ecf232"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#ab8091809b0e95b77de9c89fd08ecf232">serialize</a> (Archive &amp;archive)</td></tr>
<tr class="separator:ab8091809b0e95b77de9c89fd08ecf232"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a5baaad83af9cfd6838db277c4ad41a84" id="r_a5baaad83af9cfd6838db277c4ad41a84"><td class="memItemLeft" align="right" valign="top">static std::vector&lt; <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aa924daa48c07ebab02ad0f09f1775f49">bag_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a5baaad83af9cfd6838db277c4ad41a84">populationPartition</a> (RealMatrix const &amp;<a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aef0dbf448c9f01c70eb7defccabdd58b">cosAngles</a>)</td></tr>
<tr class="memdesc:a5baaad83af9cfd6838db277c4ad41a84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Associates a population to a set of reference vectors.  <br /></td></tr>
<tr class="separator:a5baaad83af9cfd6838db277c4ad41a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca1139b4474117041edd70ecf33afa2" id="r_aaca1139b4474117041edd70ecf33afa2"><td class="memItemLeft" align="right" valign="top">static RealMatrix&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aaca1139b4474117041edd70ecf33afa2">extractPopulationFitness</a> (std::vector&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; const &amp;population)</td></tr>
<tr class="separator:aaca1139b4474117041edd70ecf33afa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab44cdfa5f098b005d1033b97dcfa1b17" id="r_ab44cdfa5f098b005d1033b97dcfa1b17"><td class="memItemLeft" align="right" valign="top">static RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#ab44cdfa5f098b005d1033b97dcfa1b17">minCol</a> (RealMatrix const &amp;m)</td></tr>
<tr class="separator:ab44cdfa5f098b005d1033b97dcfa1b17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef0dbf448c9f01c70eb7defccabdd58b" id="r_aef0dbf448c9f01c70eb7defccabdd58b"><td class="memItemLeft" align="right" valign="top">static RealMatrix&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aef0dbf448c9f01c70eb7defccabdd58b">cosAngles</a> (RealMatrix const &amp;m1, RealMatrix const &amp;m2)</td></tr>
<tr class="memdesc:aef0dbf448c9f01c70eb7defccabdd58b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute cosine of angles between all row vectors in two matrices.  <br /></td></tr>
<tr class="separator:aef0dbf448c9f01c70eb7defccabdd58b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa70d7ca4f48a31dbe4e838e9ebb5c581" id="r_aa70d7ca4f48a31dbe4e838e9ebb5c581"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aa70d7ca4f48a31dbe4e838e9ebb5c581">m_alpha</a></td></tr>
<tr class="separator:aa70d7ca4f48a31dbe4e838e9ebb5c581"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3be26c2c82b5592c9c666bdedbf771c2" id="r_a3be26c2c82b5592c9c666bdedbf771c2"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a3be26c2c82b5592c9c666bdedbf771c2">m_maxIters</a></td></tr>
<tr class="separator:a3be26c2c82b5592c9c666bdedbf771c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a>&gt;<br />
struct shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;</div><p>Implements the reference vector selection for the <a class="el" href="classshark_1_1_r_v_e_a.html" title="Implements the RVEA algorithm.">RVEA</a> algorithm. </p>
<p>This selector uses a set of unit reference vectors to partition the search space by assigning to each reference vector the individual that is "closest" to it, as measured by the angle-penalized distance. See below paper for details: R. Cheng, Y. Jin, M. Olhofer, and B. Sendhoff, “A reference vector guided evolutionary algorithm for many-objective optimization,” IEEE Transactions on Evolutionary Computation, Vol 20, Issue 5, October 2016 <a href="http://dx.doi.org/10.1109/TEVC.2016.2519378">http://dx.doi.org/10.1109/TEVC.2016.2519378</a> </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00053">53</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="aa924daa48c07ebab02ad0f09f1775f49" name="aa924daa48c07ebab02ad0f09f1775f49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa924daa48c07ebab02ad0f09f1775f49">&#9670;&#160;</a></span>bag_t</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef std::set&lt;std::size_t&gt; <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::bag_t</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00055">55</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aef0dbf448c9f01c70eb7defccabdd58b" name="aef0dbf448c9f01c70eb7defccabdd58b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef0dbf448c9f01c70eb7defccabdd58b">&#9670;&#160;</a></span>cosAngles()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static RealMatrix <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::cosAngles </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>m1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>m2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compute cosine of angles between all row vectors in two matrices. </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00169">169</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::operator()()</a>, and <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a5baaad83af9cfd6838db277c4ad41a84">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::populationPartition()</a>.</p>

</div>
</div>
<a id="aaca1139b4474117041edd70ecf33afa2" name="aaca1139b4474117041edd70ecf33afa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaca1139b4474117041edd70ecf33afa2">&#9670;&#160;</a></span>extractPopulationFitness()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static RealMatrix <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::extractPopulationFitness </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00144">144</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::operator()()</a>.</p>

</div>
</div>
<a id="ab44cdfa5f098b005d1033b97dcfa1b17" name="ab44cdfa5f098b005d1033b97dcfa1b17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab44cdfa5f098b005d1033b97dcfa1b17">&#9670;&#160;</a></span>minCol()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static RealVector <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::minCol </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00156">156</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::operator()()</a>.</p>

</div>
</div>
<a id="a7bf23c25be28a0dc6a93b1ccb419233f" name="a7bf23c25be28a0dc6a93b1ccb419233f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bf23c25be28a0dc6a93b1ccb419233f">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>referenceVectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>gammas</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t const&#160;</td>
          <td class="paramname"><em>curIteration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Select individuals by marking them as "selected". </p>
<p>The selection operator requires the set of reference vectors, the set of least angles between reference vectors (the gammas), as well as the current iteration number. </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00064">64</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aef0dbf448c9f01c70eb7defccabdd58b">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::cosAngles()</a>, <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aaca1139b4474117041edd70ecf33afa2">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::extractPopulationFitness()</a>, <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aa70d7ca4f48a31dbe4e838e9ebb5c581">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::m_alpha</a>, <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a3be26c2c82b5592c9c666bdedbf771c2">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::m_maxIters</a>, <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#ab44cdfa5f098b005d1033b97dcfa1b17">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::minCol()</a>, <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a5baaad83af9cfd6838db277c4ad41a84">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::populationPartition()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a5baaad83af9cfd6838db277c4ad41a84" name="a5baaad83af9cfd6838db277c4ad41a84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5baaad83af9cfd6838db277c4ad41a84">&#9670;&#160;</a></span>populationPartition()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::vector&lt; <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aa924daa48c07ebab02ad0f09f1775f49">bag_t</a> &gt; <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::populationPartition </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>cosAngles</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Associates a population to a set of reference vectors. </p>
<p>The parameter is an N-by-M matrix where N is the population size and M is the number of reference vectors. Entry (i,j) is the cosine of the angle between population i and reference vector j. </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00129">129</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aef0dbf448c9f01c70eb7defccabdd58b">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::cosAngles()</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::operator()()</a>.</p>

</div>
</div>
<a id="ab8091809b0e95b77de9c89fd08ecf232" name="ab8091809b0e95b77de9c89fd08ecf232"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8091809b0e95b77de9c89fd08ecf232">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::serialize </td>
          <td>(</td>
          <td class="paramtype">Archive &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00180">180</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#aa70d7ca4f48a31dbe4e838e9ebb5c581">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::m_alpha</a>, and <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a3be26c2c82b5592c9c666bdedbf771c2">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::m_maxIters</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa70d7ca4f48a31dbe4e838e9ebb5c581" name="aa70d7ca4f48a31dbe4e838e9ebb5c581"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa70d7ca4f48a31dbe4e838e9ebb5c581">&#9670;&#160;</a></span>m_alpha</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::m_alpha</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00186">186</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::operator()()</a>, and <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#ab8091809b0e95b77de9c89fd08ecf232">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::serialize()</a>.</p>

</div>
</div>
<a id="a3be26c2c82b5592c9c666bdedbf771c2" name="a3be26c2c82b5592c9c666bdedbf771c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3be26c2c82b5592c9c666bdedbf771c2">&#9670;&#160;</a></span>m_maxIters</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="structshark_1_1_reference_vector_guided_selection.html">shark::ReferenceVectorGuidedSelection</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::m_maxIters</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_guided_selection_8h_source.html#l00187">187</a> of file <a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#a7bf23c25be28a0dc6a93b1ccb419233f">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::operator()()</a>, and <a class="el" href="structshark_1_1_reference_vector_guided_selection.html#ab8091809b0e95b77de9c89fd08ecf232">shark::ReferenceVectorGuidedSelection&lt; IndividualType &gt;::serialize()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/shark/Algorithms/DirectSearch/Operators/Selection/<a class="el" href="_reference_vector_guided_selection_8h_source.html">ReferenceVectorGuidedSelection.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
